home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / fish / 701-725 / 702 / indent / indent.lha / indent-1.4config.sh < prev    next >
Text File  |  1992-05-03  |  626b  |  22 lines

  1. # Determine if we read directories.
  2.  
  3. diropen_header=''
  4.  
  5. if test -f /usr/include/dirent.h; then
  6.     diropen_header="#define DIRENT"
  7. elif test -f /usr/include/ndir.h; then
  8.     diropen_header="#define USG"
  9. elif test -f /usr/include/sys/ndir.h; then
  10.     diropen_header="#define SYSNDIR
  11. #define USG"
  12. elif test -f /usr/include/sys/dir.h; then
  13.     echo "You have sys/dir.h; I hope that's the BSD version."
  14.     diropen_header="#define SYSDIR"
  15. else
  16.     echo "I can't find a directory library header file.
  17. That means you won't have numbered backups available."
  18.     diropen_header="#define NODIR"
  19. fi
  20.  
  21. echo $diropen_header > dirent_def.h
  22.